import { createSSRApp } from 'vue'
import App from './App'
import { createPinia } from 'pinia'

export function createApp() {
    const app = createSSRApp(App)
    app.use(createPinia())
    app.config.globalProperties.onTabBarPageShow = function() {
        uni.$emit('tabBarPageShow')
    }
    return { app }
}